<template>
  <div>
    <van-field label="服务类别" @click="show=true" readonly />
    <van-popup v-model="show" position="bottom">
      <span v-for="(item,index) in nr" :key="index" @click="a(index)">{{item}}</span>
    </van-popup>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        show:false,
        nr:{0:111,1:222,2:333}
      }
    },
    methods: {
      a(index) {
        console.log(index);
        
      }
    },
  }
</script>

<style>
  span{display: block;}
  .classname{
    background-color: blue;
  }
</style>